package com.sea.app.module.identity.transfer;

import com.sea.app.common.kit.Regexs;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Pattern;

/**
 * Created by 31417 on 2017/4/23.
 */

public class AuthenticationRequest {
    @Pattern(regexp = Regexs.STR_ENG_NUM,message = "{auth.loginName.regex}")
    @Length(min = 2,max = 20,message = "{auth.loginName.length}")
    private String loginName;
    @Pattern(regexp = Regexs.STR_ENG_NUM,message = "{auth.password.regex}")
    @Length(min = 6,max = 18,message = "{auth.password.length}")
    private String password;

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
